/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.devops.model.v20210625;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;

/**
 * @author auto create
 * @version 
 */
public class GetSearchCodePreviewRequest extends RoaAcsRequest<GetSearchCodePreviewResponse> {
	   

	private String organizationId;

	private String docId;

	private String keyword;

	private Boolean isDsl;
	public GetSearchCodePreviewRequest() {
		super("devops", "2021-06-25", "GetSearchCodePreview");
		setUriPattern("/search/code_preview");
		setMethod(MethodType.GET);
	}

	public String getOrganizationId() {
		return this.organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
		if(organizationId != null){
			putQueryParameter("organizationId", organizationId);
		}
	}

	public String getDocId() {
		return this.docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
		if(docId != null){
			putQueryParameter("docId", docId);
		}
	}

	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
		if(keyword != null){
			putQueryParameter("keyword", keyword);
		}
	}

	public Boolean getIsDsl() {
		return this.isDsl;
	}

	public void setIsDsl(Boolean isDsl) {
		this.isDsl = isDsl;
		if(isDsl != null){
			putQueryParameter("isDsl", isDsl.toString());
		}
	}

	@Override
	public Class<GetSearchCodePreviewResponse> getResponseClass() {
		return GetSearchCodePreviewResponse.class;
	}

}
